import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useAlertStore = defineStore(
  'alert',
  () => {
    const alertInfo = ref({})

    const setAlertInfo = (value) => {
      alertInfo.value = value
    }

    return {
      alertInfo,
      setAlertInfo
    }
  },
  {
    persist: true
  }
)
